package com.mjk.manager;

import com.mjk.common.web.getway.annotation.EnableGetWay;
import com.mjk.common.web.getway.transfer.GetwayTransferType;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;


@SpringBootApplication(scanBasePackages = {"com.mjk", "org.ssssssss"}, exclude = {SecurityAutoConfiguration.class})
@EnableWebMvc
@EnableAspectJAutoProxy
@EnableTransactionManagement(proxyTargetClass=true)
@EnableGetWay(basePackages = {"com.mjk"}, transferType = GetwayTransferType.HTTP)
@EnableDiscoveryClient
public class BeeManagerStart extends SpringBootServletInitializer{
	public static void main(String[] args) {
		SpringApplication.run(BeeManagerStart.class, args);
	}
	
	@Override
	protected SpringApplicationBuilder configure(
			SpringApplicationBuilder builder) {	
		return builder.sources(BeeManagerStart.class);
	}
}